for %%f in (code\*.cpp) do (
    if exist "%%f" (
        git mv ./"%%f" code\hot150\
    )
)